   <script type="text/javascript">
  function PrintDiv() {    
           var divToPrint = document.getElementById('print');
           var popupWin = window.open('', '_blank', 'width=800,height=800');
           popupWin.document.open();
           popupWin.document.write('<html><body onload="window.print()">' + divToPrint.innerHTML + '</html>');
            popupWin.document.close();
                }
	</script>	
	<div align="right">
<input type="button" value="Print" onclick="PrintDiv();"></div>
<div id="print" class="container-fluid">
<h3 align="center">Order No: <?php echo $order_no;  ?></h3>
<div class="row-fluid">
<div class="span12">
<table class="table table-striped table-bordered" width="100%" border="1px">
<tr>
<th>From</th>
<th>To</th>
</tr>
<tr>
<td><p>Name:  <b><?php echo $profile['name'];?></b></p>
<p>Email: <b><?php echo $profile['email'];?></b></p>
<p>Tin No:  <b><?php echo $profile['tin_no'];?></b></p>
<p>Contact: <b><?php echo $profile['phone_no'];?></b></p></td>
<td>
	<p>Name:  <b><?php echo $supplier['name'];?></b></p>
<p>Email: <b><?php echo $supplier['email'];?></b></p>
<p>Tin No:  <b><?php echo $supplier['tin_no'];?></b></p>
<p>Contact: <b><?php echo $supplier['mobile'];?></b></p>

</td>
</tr>

</table>
</div>
</div>
<br>
<div class="row-fluid">
<div class="span12">
<table class="table table-striped table-bordered" width="100%" border="1px" >
	<thead>
    <tr>
		<th>Product name</th>
		<th>Company</th>
		<th>Catrgory</th>
		<th>Quantity</th>
    </tr>
    </thead>
	<?php foreach ($users as $user):?>
		<tr>
			<td><?php  echo $user->name; ?></td>
			<td><?php  echo $user->category; ?></td>
            <td><?php  echo $user->company; ?></td>
			<td><?php  echo $user->quantity; ?></td>
		</tr>
	<?php endforeach;?>
</table>
</div>
</div>
<!--<p><a href="<?php echo site_url('auth/create_user');?>">Create a new user</a> | <a href="<?php echo site_url('auth/create_group');?>">Create a new group</a>
<a href="<?php echo site_url('auth/logout');?>">Logout</a>
</p>-->
</div>